<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("企业信息添加")}</title>
<link href="/resources/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resources/js/reference/jquery.js"></script>
<script type="text/javascript" src="/resources/js/reference/jquery.validate.js"></script>
<script type="text/javascript" src="/resources/js/base/dialog.js"></script>
<script type="text/javascript" src="/resources/js/base/request.js"></script>
<script type="text/javascript" src="/resources/js/base/global.js"></script>
<script type="text/javascript" src="/resources/js/base/file.js"></script>
<style type="text/css">
.authorities label {
	min-width: 120px;
	_width: 120px;
	display: block;
	float: left;
	padding-right: 4px;
	_white-space: nowrap;
}
</style>
<script type="text/javascript">
function editQty(t,e){
	extractNumber(t,0,false,e)
}
$().ready(function() {

	var $inputForm = $("#inputForm");
	
	$("input[name='logo']").single_upload({
		uploadSize:"medium"
	});
	
	// 表单验证
	$inputForm.validate({
		rules: {
			name: "required",
			url: "required",
			simple_name:{required: true},
			checkModel:"required",
			company_name: {required: true},
			company_code: {required: true},
			pwd_code: {required: true,rangelength:[5, 10]},
		}
	});
	
	$("form").bindAttribute({
		isConfirm:true,
	    callback: function(resultMsg){			
	        $.message_timer(resultMsg.type,resultMsg.content,1000,function(){
				location.href= 'edit.jhtml?id='+resultMsg.objx;
			})
	    }
	 });
	
});

</script>
</head>
<body>
	<div class="pathh">
		&nbsp;新增企业信息
	</div>
	<form id="inputForm" action="save.jhtml" method="post"  type="ajax" validate-type="validate">
		<div class="tabContent">
			<table class="input input-edit">
			<tr>
				<th>
					<span class="requiredField">*</span>${message("企业全称")}:
				</th>
				<td>
					<input type="text" name="company_name" class="text" maxlength="200"  btn-fun="clear" />
				</td>
				<th>
					<span class="requiredField">*</span>${message("11051")}:
				</th>
				<td>
					<input type="text" name="simple_name" class="text" maxlength="200"  btn-fun="clear" />
				</td>
				<th>
					<span class="requiredField">*</span>${message("11052")}:
				</th>
				<td>
					<input type="text" name="company_code" class="text" maxlength="200"  btn-fun="clear" />
				</td>
				<th>
					<span class="requiredField">*</span>${message("11070")}:
				</th>
				<td>
					
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField"></span>${message("是否启用")}:
				</th>
				<td>
					<label>
						<input type="checkbox" name="isEnabled" value="true" checked="checked"/>启用
						<input type="hidden" name="_isEnabled" value="false"/>
					</label>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
				<th>
					<span class="requiredField"></span>${message("企业唯一标识")}:
				</th>
				<td colspan="5">
					${company_info.uniqueIdentify}
				</td>
			</tr>
			<!-- <tr>
				<th>
					企业logo:
				</th>
				<td colspan="7">
					<input type="hidden" name="logo" value=""/>
				</td>
			</tr> -->
			<tr>
				<th>
					<span class="requiredField"></span>${message("11062")}:
				</th>
				<td colspan="7" >
					<textarea name="note" class="text" maxlength="500"></textarea>
				</td>
			</tr>
		</table>
		</div>
		<div class="fixed-top">
			<input type="submit" id="submit_button" class="button sureButton" value="${message("1013")}" />
			<input type="button" onclick="location.reload(true);" class="button resetButton ml15" value="${message("重置")}">
		</div>
	</form>
</body>
</html>